package com.eol.entity.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: liulinhui
 * Date: 2020/6/5
 * Time: 9:00 PM
 * Description: MerchantDto
 */
@Data
public class MerchantDto implements Serializable {

    @ApiModelProperty(value = "")
    private String id;

    @ApiModelProperty(value = "商户名字")
    private String name;

    @ApiModelProperty(value = "上级商户")
    private String pid;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<MerchantDto> children;

    public String getLabel() {
        return name;
    }

}
